<div class="slide-dialog-header">
	<h2>{{title}}</h2>
	<div class="slide-dialog-toolbar">
		<ul>
			<li><span class="ui-btn slide-dialog-close" ng-click="close(false)"><i class="fa fa-remove"></i></span></li>
		</ul>
	</div>
</div>
<div class="slide-dialog-body x-slide-dialog-body">
	<div class="x-data-panel-fixed">
		<form name="form" novalidate="novalidate" ng-submit="submit(form.$valid);">
			<div class="x-data-panel-body">
				<div class="data-form">
					<table cellspacing="0" cellpadding="0">
						<colgroup>
							<col width="100" />
							<col />
						</colgroup>
						<tbody>
							<tr>
								<td>规则名称：</td>
								<td><span class="text-danger">{{data.name}}</span></td>
							</tr>
							<tr>
								<td class="x-control"><span class="x-star">*</span>规则参数：</td>
								<td>
									<div class="data-map">
										<dl ng-repeat="json in jsonArray() track by $index">
											<dt><input type="text" class="x-ipt" ng-model="json[getKey(1)]" placeholder="请输入源值" required /></dt>
											<dd>
												<input type="text" class="x-ipt" ng-model="json[getKey(2)]" placeholder="请输入目标值" required />
												<span class="data-map-tools">
													<span class="ico-btn fa fa-minus-square" ng-click="removeJson($index)"></span>
													<span class="ico-btns" ng-if="$index != jsonArray().length - 1">
														<span class="ico-btn fa fa-caret-up" ng-if="$index != 0" ng-click="movePrev($index)"></span>
														<span class="ico-btn fa fa-caret-down" ng-click="moveNext($index)"></span>
													</span>
													<span class="ico-btn fa fa-plus-square" ng-if="$index == jsonArray().length - 1" ng-click="addJson()"></span>
												</span>
											</dd>
										</dl>
									</div>
								</td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
			<div class="x-data-panel-footer">
				<button class="dialog-button cancel-button" type="button" ng-click="close(false)">取消</button><button class="dialog-button" type="submit" ng-disabled="formDisabled">提交</button>
			</div>
		</form>
	</div>
</div>